#ifndef __DS__
#define __DS__

#include <func.h>

enum{
    ISCD,
    ISLS,
    ISPWD,
    ISPUTS,
    ISGETS,
    ISRM,
    ISMKDIR,
    ISRMDIR                                                     
};

enum{
    ISCOMMAND,
    ISFILE,
    ISRESULT,
    ISLOGIN
};

typedef struct userinfo_s{
    char username[32];
    char password[32];
}userinfo_t;

typedef struct train_s{
    int flag;
    int length;
    char data[1000];
}train_t;

typedef struct cmd_s{
    int cmdType;
    char parameter1[256];
    char parameter2[256];
}cmd_t;

#endif
